package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.DamageList;
import com.atguigu.jxc.entity.DamageListGoods;
import com.atguigu.jxc.entity.OverflowList;
import com.atguigu.jxc.entity.OverflowListGoods;

import java.util.List;

public interface DamageListGoodsDao {
    void saveDamageList(DamageList damageList);

    void saveDamageListGoods(DamageListGoods damageListGoods);

    /**
     * 保存损坏表
     * @param overflowList
     */
    void saveOverflowList(OverflowList overflowList);

    /**
     *保存商品表
     * @param overflowListGoods
     */
    void saveOverFlowGoods(OverflowListGoods overflowListGoods);

    /**
     * 查询所有商品的信息
     * @return
     */
    List<DamageList> getDamageList();

    /**
     * 查询报损单商品信息
     * @param damageListId
     * @return
     */
    List<DamageListGoods> damageListGoodsGoodsList(Integer damageListId);

    /**
     * 报溢单商品信息
     * @param overflowListId
     * @return
     */
    List<OverflowListGoods> overflowListGoodsgoodsList(Integer overflowListId);

    /**
     * 查询所有的报溢单
     * @return
     */
    List<OverflowList> overflowListGoods();
}
